package input

import (
	"github.com/e421083458/gin_scaffold/public"
	"github.com/gin-gonic/gin"
)

type TransInput struct {
	Content string `form:"content" validate:"required"`
	From    string `form:"from" validate:"required"`
	To      string `form:"to" validate:"required"`
}

func (params *TransInput) BindingParams(c *gin.Context) error {
	return public.DefaultGetValidParams(c, params)
}
